{% extends 'layout.html' %}
{% block content %}
    <form action="/user/add/" method="post">
        {% csrf_token %}
        <div class="container">
            <label for="inputEmail3" class="col-sm control-label"><span class="glyphicon glyphicon-ok"
                                                                        aria-hidden="true"></span> 用户姓名:</label>
            <input type="text" class="form-control" name="name" placeholder="用户姓名"
                   style="width: 1140px;margin-top: 10px">
            <label for="inputEmail3" class="col-sm control-label"><span class="glyphicon glyphicon-ok"
                                                                        aria-hidden="true"></span> 密码:</label>
            <input type="text" class="form-control" name="pwd" placeholder="密码" style="width: 1140px;margin-top: 10px">
            <label for="inputEmail3" class="col-sm control-label"><span class="glyphicon glyphicon-ok"
                                                                        aria-hidden="true"></span> 年龄:</label>
            <input type="text" class="form-control" name="age" placeholder="年龄" style="width: 1140px;margin-top: 10px">
            <label for="inputEmail3" class="col-sm control-label"><span class="glyphicon glyphicon-ok"
                                                                        aria-hidden="true"></span> 工资:</label>
            <input type="text" class="form-control" name="act" placeholder="工资" style="width: 1140px;margin-top: 10px">
            <label for="inputEmail3" class="col-sm control-label"><span class="glyphicon glyphicon-ok"
                                                                        aria-hidden="true"></span> 入职时间:</label>
            <input type="text" class="form-control" name="crtime" placeholder="入职时间"
                   style="width: 1140px;margin-top: 10px">
            <label for="inputEmail3" class="col-sm control-label"><span class="glyphicon glyphicon-ok"
                                                                        aria-hidden="true"></span> 性别:</label>
            <select class="form-control" name="gender">
                {% for item in gender_choice %}
                    <option value="{{ item.0 }}">{{ item.1 }}</option>
                {% endfor %}
            </select>
            <label for="inputEmail3" class="col-sm control-label"><span class="glyphicon glyphicon-ok"
                                                                        aria-hidden="true"></span> 部门:</label>
            <select class="form-control" name="depart">
                {% for item in depart_choice %}
                    <option value="{{ item.id }}">{{ item.title }}</option>
                {% endfor %}
            </select>
            <input type="submit" style="margin-top: 20px" class="btn btn-success">
        </div>
    </form>
{% endblock %}